home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!sun2!ua302aa
- From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: qsort help
- Date: 3 Jan 1996 11:47:56 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4cdqdc$g57@sparcserver.lrz-muenchen.de>
- References: <4ccio7$7c0@charm.magnus.acs.ohio-state.edu> <DKLDuJ.9Er@eskimo.com>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
- Keywords: qsort
-
- mag@eskimo.com (mAg) writes:
-
- >In article <4ccio7$7c0@charm.magnus.acs.ohio-state.edu> (3 Jan 1996 00:31:03 GMT),
- >xiaoyi@bmecg.bme.ohio-state.edu says :
- >>
- >>Hi, I am having some problems with the qsort routine.
- >>
- >>
- >change
-
- >>int (*compar)(int *a, int *b)
-
- >to
-
- >int compar(int *a, int *b)
-
- This will not help much if the representation of a pointer to int is
- different from the representation of a void pointer. We can be sure
- that pointers to char have the same representation as void pointers,
-
- The signatures of the functions are still different, and you should
- still get a diagnostic message.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-
-